package pc29.model;

public class Ch04Ex05Add {

	private int a;
	private int b;

	public Ch04Ex05Add(int a, int b) {
		this.a = a;
		this.b = b;
	}

	public int getA() {
		return a;
	}

	public void setA(int a) {
		this.a = a;
	}

	public int getB() {
		return b;
	}

	public void setB(int b) {
		this.b = b;
	}

	public int calculate(int a, int b) {
		return a + b;
	}
	
	@Override
	public String toString() {
		String result = "";
		result = "" + calculate(a, b);

		return result;
	}

}
